package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 组织成员对象 organization_member
 * 
 * @author ruoyi
 * @date 2025-09-19
 */
public class OrganizationMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userId;

    /** 组织ID */
    @Excel(name = "组织ID")
    private String orgId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 身份标识 */
    @Excel(name = "身份标识")
    private String identityNumber;

    /** 认证密码 */
    @Excel(name = "认证密码")
    private String verificationCode;

    /** 是否验证通过 */
    @Excel(name = "是否验证通过")
    private Integer isVerified;

    /** 加入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "加入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date joinedAt;

    /** 创建时间 */
    private Date createdAt;

    /** 更新时间 */
    private Date updatedAt;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }

    public void setOrgId(String orgId) 
    {
        this.orgId = orgId;
    }

    public String getOrgId() 
    {
        return orgId;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setIdentityNumber(String identityNumber) 
    {
        this.identityNumber = identityNumber;
    }

    public String getIdentityNumber() 
    {
        return identityNumber;
    }

    public void setVerificationCode(String verificationCode) 
    {
        this.verificationCode = verificationCode;
    }

    public String getVerificationCode() 
    {
        return verificationCode;
    }

    public void setIsVerified(Integer isVerified) 
    {
        this.isVerified = isVerified;
    }

    public Integer getIsVerified() 
    {
        return isVerified;
    }

    public void setJoinedAt(Date joinedAt) 
    {
        this.joinedAt = joinedAt;
    }

    public Date getJoinedAt() 
    {
        return joinedAt;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("orgId", getOrgId())
            .append("userName", getUserName())
            .append("identityNumber", getIdentityNumber())
            .append("verificationCode", getVerificationCode())
            .append("isVerified", getIsVerified())
            .append("joinedAt", getJoinedAt())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("status", getStatus())
            .toString();
    }
}
